#ifndef __PROTO2_T__
#define __PROTO2_T__

#define KEYPATH "/etc/services"
#define KEYPROJ 'a'
#define PATHMAX (1024)
#define DATAMAX (1024)

enum{
    MSG_PATH = 1,
    MSG_DATA,
    MSG_EOT
}msg_mtype_t;

typedef struct{
    long mtype; /* msg_mtype_t MSG_PATH */
    char path[PATHMAX];
}msg_path_t;

typedef struct{
    long mtype; /* msg_mtype_t MSG_DATA or MSG_EOT */
    int datalen; /* >0 :data; == 0 :eot */
    char data[DATAMAX];
}msg_s2c_t;

#endif //__PROTO2_T__
